//
//  SEGNaviHeaderView.h
//  Commom
//
//  Created by 山刘 on 2018/11/21.
//  Copyright © 2018年 山刘. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SEGNaviHeaderScrollView.h"

NS_ASSUME_NONNULL_BEGIN

@protocol SEGSEGNaviHeaderViewProtocol <NSObject>
@optional
-(void)segbackBtnClick;
-(void)shareBtnClick:(id)data;
-(void)segcloseBtnClick;
@end


@interface SEGNaviHeaderView : UIView
@property (nonatomic, weak) id<SEGSEGNaviHeaderViewProtocol> delegate;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, strong) id data;
@property (nonatomic, assign) BOOL canShowCloseButton;//是否可以展示关闭按钮
@property (nonatomic, strong)SEGNaviHeaderScrollView *headerScrollView;
@property (nonatomic, strong) UIImage *backButtonImage;
@property (nonatomic, strong) UIButton *shareBtn;

/**
 展示分享按钮
 */
-(void)showShare;

/**
 隐藏分享按钮
 */
-(void)hideShare;

@end

NS_ASSUME_NONNULL_END
